<template>
    <div class="public-common">
        <!--网约车驾驶员查询-->
        <div class="public-title">网约车驾驶员查询</div>
        <div style="padding:10px;">
            <el-row>
                <el-col :span="6">
                    <el-input placeholder="请输入内容" v-model="form.test" class="input-with-select"/>
                </el-col>
                <el-col :span="18">
                    <el-button type="primary" icon="el-icon-search" style="margin-left:10px;">搜索</el-button>
                </el-col>
            </el-row>
        </div>
        <el-scrollbar style="height:calc(100% - 130px)">
            <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
                <el-table-column
                    label="学员姓名" fixed="left">
                    <template slot-scope="scope">
                        {{scope.row.companyName}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="性别">
                    <template slot-scope="scope">
                        {{scope.row.carId}}
                    </template>
                </el-table-column>                
                <el-table-column
                    label="身份证">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="民族">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="联系电话">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="家庭住址">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="初领驾驶证日期">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="驾驶证档案编号">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="准驾驶车型">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="所属企业名称">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="审核操作员姓名">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="审核操作日期">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="从业资格证件编号">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="考试时间">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="考试地点">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="操作" fixed="right">
                    <template slot-scope="scope">
                        <el-button type="primary" size="mini">查看</el-button>
                    </template>
                </el-table-column> 
            </el-table>
        </el-scrollbar>
        
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
        <!--dialog-->
        <el-dialog title="驾驶员信息"  :visible.sync="dialog.isVisible" width="60%">
            <el-scrollbar style="height:350px;">
            <el-form label-width="80px" disabled size="mini">
                <el-row>
                    <el-col :span="8">
                        <el-form-item label="照片">
                            <div style="position:absolute;">
                                <img src="http://113.140.71.251:8009/Resources/nophoto.jpg" alt="" style="width:110px;height:146px;">
                            </div>                            
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="姓名">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="性别">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="8" :offset="8">
                        <el-form-item label="准驾车型">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="报考类型">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="8" :offset="8">
                        <el-form-item label="民族">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="籍贯">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="8" :offset="8">
                        <el-form-item label="年龄">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="学历">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="8">
                        <el-form-item label="政治面貌">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="联系电话">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="排班">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="8">
                        <el-form-item label="车牌号">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="资格证号">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="身份证号">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="初领驾驶证日期" label-width="120px">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="驾驶证档案编号" label-width="120px">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                    
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="初次领证日期" label-width="120px">
                            <el-input v-model="dialog.name"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-form-item label="家庭住址">
                    <el-input v-model="dialog.name"></el-input>
                </el-form-item>
            </el-form>
            </el-scrollbar>
            <div class="textcenter" style="padding-top:10px;">
                <el-button type="info" @click="dialog.isVisible = false" size="mini">返回</el-button>  
            </div>
        </el-dialog>
    </div>
</template>
<script>
export default {
    data(){
        return {
            form:{
                test:'',
                carid:''
            },
            tabledata:[
                {carId:1}
            ],
            page:{
              now:1,
              pagesize:10,
              sizes:[2,10, 20, 50, 100],
              total:0,
              key:''
            },
            detaildata:[],
            dialog:{
                isVisible:false,
                name:''
            },
            select:{
                companys:[],
                sexs:[
                    {label:"男",value:'男'},
                    {label:"女",value:'女'}
                ],
                creaters:[],
                useStates:[
                    {label:"启用",value:'启用'},
                    {label:"禁用",value:'禁用'}
                ]
            }
        }
    },
    mounted(){
        
    },
    methods:{
        uploadImg(file, fileList){
            console.log(214,file)
        },
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>
<style lang="scss">
// $Color:#15428F;
// $Bgnavtab:rgba(255,255,255,.5);
// $BgHeader:#DFE8F6;
// $BorderColor:#99bbe8;
// .public-common{
//     padding: 20px;
//     .public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;color:$Color; }
// }
</style>